<template>
    <StElDynamicForm :submit-props="{method: 'post',url:IdentificationUrl.audit,label: '确认',dataFormat: dataFormat,msg: '操作成功'}"
                     :datas="$stStringTools.replaceb(IdentificationUrl.queryById,{id:  $route.query.id})"
                     :datas-format="datasFormat"
                     :layout="1"
                     :options="IdentificationFormOptions" :origin-prop="{inline: true,labelWidth: '100px'}">

    </StElDynamicForm>
</template>

<script>
/**
 * 实名认证审核
 */
    import IdentificationMixin from '../IdentificationMixin.js'
    export default {
        name: "IdentificationRealNameAudit",
        mixins: [IdentificationMixin],
        data() {
            return {

            }
        },
        methods: {
          datasFormat(data){
            data.contentMap = JSON.parse(data.content)
            return data
          },
          dataFormat(data){
            let newData = {
              id: data.id,
              isAudited: data.isAudited,
              auditFailReason: data.auditFailReason
            }
            return newData
          }
        }
    }
</script>

<style scoped>

</style>